package io.sdl.dao;

import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import io.sdl.entity.SdlDiariesEntity;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;

import java.util.List;

/**
 * 矫形日记表
 * 
 * @author Dchen
 * @email 1211734836@qq.com
 * @date 2025-04-25 14:09:19
 */
@Mapper
public interface SdlDiariesDao extends BaseMapper<SdlDiariesEntity> {


    List<SdlDiariesEntity> selectByUserId(@Param("userId") Long userId,@Param("roleId") Long roleId, @Param("page") Integer page, @Param("limit") Integer limit);


    int getNum(@Param("userId") Long userId);

    SdlDiariesEntity selectByIdForUpdate(@Param("id")Long id);
}
